package com.lvcoding.sec2.secdemo2.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 描述
 * @date   2022-02-28 下午6:01
 * @author  wuyanshen
 */
@RequestMapping("user")
@RestController
public class UserController {

    @PreAuthorize("hasAuthority('cup:user:view')")
    @GetMapping("list")
    public String list() {
        return "我是list信息";
    }
}
